﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPages/Directora.Master" AutoEventWireup="true" CodeBehind="CrearEvaluacion.aspx.cs" Inherits="Interfaces.Evaluacion.CrearEvaluacion" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <style type="text/css">
        .style1
        {
            text-align: left;
        }
    </style>
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<script>
    function Count(text) {
        //asp.net textarea maxlength doesnt work; do it by hand
        var maxlength = 65530; //set your value here (or add a parm and pass it in)
        var object = document.getElementById(text.id)  //get your object
        if (object.value.length > maxlength) {
            object.focus(); //set focus to prevent jumping
            object.value = text.value.substring(0, maxlength); //truncate the value
            object.scrollTop = object.scrollHeight; //scroll to the end to prevent jumping
            return false;
        }
        return true;
    }
</script>
    <asp:Panel ID="Panel1" runat="server" GroupingText="Crear Evaluacion" 
        style="text-align: center">
    <table style="width:100%;">
            <tr>
                <td class="style1">
                    Nombre del Programa:
                </td>
                <td class="style1">
                    <asp:Label ID="NombreLbl" runat="server"></asp:Label>
                </td>
            </tr>
            <tr>
                <td class="style1">
                    Duración:</td>
                <td class="style1">
                    <asp:Label ID="DuracionLbl" runat="server" ></asp:Label>
                </td>
            </tr>
            <tr>
                <td class="style1">
                    Nro Participantes:</td>
                <td class="style1">
                    <asp:TextBox ID="TbxParticipantes"  MaxLength=10 runat="server" style="text-align: left"></asp:TextBox>
                    <ajaxToolkit:FilteredTextBoxExtender ID="TbxParticipantes_FilteredTextBoxExtender" 
                        runat="server" TargetControlID="TbxParticipantes" FilterType="Numbers">
                    </ajaxToolkit:FilteredTextBoxExtender>
                </td>
            </tr>
            <tr>
                <td class="style1">
                    Area:</td>
                <td class="style1">
                    <asp:Label ID="AreaLbl" runat="server" ></asp:Label>
                </td>
            </tr>
            <tr>
                <td class="style1">
                    Resultados:</td>
                <td class="style1">
                    <asp:TextBox ID="TbxResultados" runat="server" Columns="60" Rows="5" TextMode="MultiLine" style="text-align: left" onKeyUp="javascript:Count(this);" onChange="javascript:Count(this);"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="style1">
                    Acciones Tomadas:</td>
                <td class="style1">
                    <asp:TextBox ID="TbxAcciones" runat="server" Columns="60" Rows="5" TextMode="MultiLine" style="text-align: left" onKeyUp="javascript:Count(this);" onChange="javascript:Count(this);"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="style1">
                    Recomendaciones:
                </td>
                <td class="style1">
                    <asp:TextBox ID="TbxRecomendaciones" runat="server" Columns="60" Rows="5" TextMode="MultiLine" style="text-align: left" onKeyUp="javascript:Count(this);" onChange="javascript:Count(this);"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="style1">
                    Logros Alcanzados:</td>
                <td class="style1">
                    <asp:TextBox ID="TbxLogros" runat="server" Columns="60" Rows="5" TextMode="MultiLine" style="text-align: left" onKeyUp="javascript:Count(this);" onChange="javascript:Count(this);"></asp:TextBox>
                </td>
            </tr>
        </table>
        <asp:Label ID="ErrorLb" runat="server" ForeColor="Red" ></asp:Label>
        <br />
        <asp:Button ID="CrearBtn" runat="server" Text="Crear" 
            onclick="CrearBtn_Click" CssClass="JCIstyle" />
    </asp:Panel>
</asp:Content>
